<script setup lang="ts">import { ref } from 'vue';

// typescript
const onCancel = () => {
  console.log(321);
  
}
</script>

<!-- 我的收藏 -->
<template>
  <view class="container">
    <w-commodity-list>
      <template #sale="{ item }">
        <button @click.stop="onCancel" class="cancel" size="mini" plain>取消收藏</button>
      </template>
    </w-commodity-list>
  </view>
</template>

<style scoped lang="scss">
// scss
.cancel {
  border-color: $primary-color;
  color: $primary-color;
}
</style>
